package com.leyou.item.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.item.entity.SpuDetail;
import com.leyou.item.mapper.SpuDetailMapper;
import com.leyou.item.service.SpuDetailSerivce;
import com.leyou.pojo.dto.SpuDetailDTO;
import org.springframework.stereotype.Service;

@Service
public class SpuDetailSerivceImpl extends ServiceImpl<SpuDetailMapper, SpuDetail> implements SpuDetailSerivce {


    @Override
    public SpuDetailDTO findDetailById(Long id) {
        return new SpuDetailDTO(this.getById(id));
    }
}
